/*
 * CS_CHANGE_INTRO_STATE.cpp
 *
 *  Created on: 2013. 9. 10.
 *      Author: jjaehuny
 */




/*
 * CS_SLOT_PLAYER_CREATE.cpp
 *
 *  Created on: 2013. 9. 7.
 *      Author: jjaehuny
 */

#include "../../engine.h"

#include "../../User.h"
#include "../../Proxy.h"

#include "world.h"

namespace ProjectZ { namespace NCommand { namespace NWorld {

void CS_CHANGE_INTRO_STATE::OnExecute(User * pUser, ::Network::Packet * pPacket)
{
	/*
	CS_CHANGE_INTRO_STATE				0x094C
	{

		u8 u8intro_state;		/// 0 : 보지않음 1: 메인 인트로 봤음 2: 퀘스트 1번 진행 3: 퀘스트 2번 완료
	}

	SC_CHANGE_INTRO_STATE				0x094D
	{
		s16	s16ack;
	}
	*/

	STRESSLOG("[CHANNEL] CS_CHANGE_INTRO_STATE::ONEXECUTE");
	PREPARE_PACKET;

	uint8_t u8intro_state;
	* pPacket >> u8intro_state;

	pUser->GetUserInfo().u8intro_state = u8intro_state;

	::Network::Packet * pAck = ::Network::GETPACKETPOOL()->SEND_NEW();
	pAck->Write2(ACK_OK);
	pAck->MakePacket(CMD_SC_CHANGE_INTRO_STATE);
	pUser->Send(pAck);
}

} /*NWorld*/ } /*NCommand*/ } /*ProjectZ*/



